package proxyTest;

import java.lang.reflect.Proxy;

/**
 * 演出赞助商
 * 
 * @author zjun
 * @version 1.0 create on 2006-4-11 18:30:25
 */
public class Patron {

	/** */
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Star star = new Star();
		BrokerHandler broker = new BrokerHandler(star);
		Artist b = (Artist) Proxy.newProxyInstance(star.getClass()
				.getClassLoader(), star.getClass().getInterfaces(), broker);
		b.show("  演电影  ");
		b.show("  拍电视  ");
		b.show("  出唱片  ");
		b.show("  演唱会  ");

	}
}